package com.d0325;

import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
import java.util.List;

public class TestArrayList {
    public static void main(String[] args) {
        List<Integer> myList=new ArrayList<Integer>();
        myList.add(0,10);
        myList.add(1,11);
        myList.add(2,12);
        myList.add(3,13);

       /* System.out.println(myList.isEmpty());
        System.out.println(myList.contains(2));*/
       // myList.remove(3);
        //myList.remove(2);
     /*   System.out.println(myList.subList(0,3));
        System.out.println(myList.size());
        for (Integer i:
             myList) {
            System.out.print(i+"\t");
        }

*/
        Iterator<Integer> iterator=myList.iterator();
        while(iterator.hasNext()){
            System.out.println(iterator.next());
        }
        //System.out.println(myList.get(0));
    }
}
